import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { MaterialIntoComponent } from '@app/material/into/into.component';
import { MaterialLocationComponent } from './location/location.component';
import { MaterialIndexComponent } from './index/index.component';
import { MaterialLogComponent } from './log/log.component';

@NgModule({
  imports: [
    RouterModule.forChild([
      {
        path: '',
        children: [
          {
            path: 'index',
            component: MaterialIndexComponent,
            data: { permission: 'Mes51.Pages.Material.Index' }
          },
          {
            path: 'location',
            component: MaterialLocationComponent,
            data: { permission: 'Mes51.Pages.Material.Location' }
          },
          {
            path: 'into',
            component: MaterialIntoComponent,
            data: { permission: 'Mes51.Pages.Material.Into' }
          },
          {
            path: 'log',
            component: MaterialLogComponent,
            data: { permission: 'Mes51.Pages.Material.Log' }
          }
        ]
      }
    ])
  ],
  exports: [RouterModule]
})
export class MaterialRoutingModule {}
